import CommonList from 'src/components/CommonLists/list';

export default class extends CommonList {
  constructor(props) {
    super(props);
    this.api = 'strategyComponent';
    this.operatorWidth = 0;
    this.needOperateColumn = false;
    this.state = {
      events: [],
    };

    this.btnGroup = [];
  }
  componentDidMount() {}

  // 删除时的参数
  getDeleteParam = (record) => {
    return { strategy_id: record.strategy_id };
  };

  // 打开新版本
  openVersion = (id) => {
    this.props.history.push(`/strategy/config/${id}/version`);
  };
}
